home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Resources / Chat & Communication / Digsby build 37 / digsby_setup.exe / lib / xml / sax / handler.pyo (.txt) < prev    next >
Python Compiled Bytecode  |  2008-10-13  |  5KB  |  123 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.5)
  3.  
  4. version = '2.0beta'
  5.  
  6. class ErrorHandler:
  7.     
  8.     def error(self, exception):
  9.         raise exception
  10.  
  11.     
  12.     def fatalError(self, exception):
  13.         raise exception
  14.  
  15.     
  16.     def warning(self, exception):
  17.         print exception
  18.  
  19.  
  20.  
  21. class ContentHandler:
  22.     
  23.     def __init__(self):
  24.         self._locator = None
  25.  
  26.     
  27.     def setDocumentLocator(self, locator):
  28.         self._locator = locator
  29.  
  30.     
  31.     def startDocument(self):
  32.         pass
  33.  
  34.     
  35.     def endDocument(self):
  36.         pass
  37.  
  38.     
  39.     def startPrefixMapping(self, prefix, uri):
  40.         pass
  41.  
  42.     
  43.     def endPrefixMapping(self, prefix):
  44.         pass
  45.  
  46.     
  47.     def startElement(self, name, attrs):
  48.         pass
  49.  
  50.     
  51.     def endElement(self, name):
  52.         pass
  53.  
  54.     
  55.     def startElementNS(self, name, qname, attrs):
  56.         pass
  57.  
  58.     
  59.     def endElementNS(self, name, qname):
  60.         pass
  61.  
  62.     
  63.     def characters(self, content):
  64.         pass
  65.  
  66.     
  67.     def ignorableWhitespace(self, whitespace):
  68.         pass
  69.  
  70.     
  71.     def processingInstruction(self, target, data):
  72.         pass
  73.  
  74.     
  75.     def skippedEntity(self, name):
  76.         pass
  77.  
  78.  
  79.  
  80. class DTDHandler:
  81.     
  82.     def notationDecl(self, name, publicId, systemId):
  83.         pass
  84.  
  85.     
  86.     def unparsedEntityDecl(self, name, publicId, systemId, ndata):
  87.         pass
  88.  
  89.  
  90.  
  91. class EntityResolver:
  92.     
  93.     def resolveEntity(self, publicId, systemId):
  94.         return systemId
  95.  
  96.  
  97. feature_namespaces = 'http://xml.org/sax/features/namespaces'
  98. feature_namespace_prefixes = 'http://xml.org/sax/features/namespace-prefixes'
  99. feature_string_interning = 'http://xml.org/sax/features/string-interning'
  100. feature_validation = 'http://xml.org/sax/features/validation'
  101. feature_external_ges = 'http://xml.org/sax/features/external-general-entities'
  102. feature_external_pes = 'http://xml.org/sax/features/external-parameter-entities'
  103. all_features = [
  104.     feature_namespaces,
  105.     feature_namespace_prefixes,
  106.     feature_string_interning,
  107.     feature_validation,
  108.     feature_external_ges,
  109.     feature_external_pes]
  110. property_lexical_handler = 'http://xml.org/sax/properties/lexical-handler'
  111. property_declaration_handler = 'http://xml.org/sax/properties/declaration-handler'
  112. property_dom_node = 'http://xml.org/sax/properties/dom-node'
  113. property_xml_string = 'http://xml.org/sax/properties/xml-string'
  114. property_encoding = 'http://www.python.org/sax/properties/encoding'
  115. property_interning_dict = 'http://www.python.org/sax/properties/interning-dict'
  116. all_properties = [
  117.     property_lexical_handler,
  118.     property_dom_node,
  119.     property_declaration_handler,
  120.     property_xml_string,
  121.     property_encoding,
  122.     property_interning_dict]
  123.